package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);
    //分页查询菜品数据，菜品分类名称
    Page<DishDto> pageDishDto(Integer page, Integer pageSize, String name);

    DishDto getByIdWithFlowers(Long id);

    void updateWithFlowers(DishDto dishDto);

    void deleteByIds(Long[] ids);

    List<DishDto> listDishDto(Long categoryId, String name);
}
